package org.example.springiocdemo.Controller;

import org.example.springiocdemo.Service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class UserController3 {
    private UserService userService;
    @Autowired
    public void setUserService(UserService userService)
    {
        this.userService = userService;
    }
    public void hello()
    {
        System.out.println("Hello UserController3");
        userService.hello();
    }
}
